﻿@if (LineOfBusiness.Core.Helper.CacheHelper.LoginUser.MetroStyle)
{
    Layout = "~/Views/Shared/Modern.cshtml";

    <script>
        @{
            MvcHtmlString sJSON = null;
            if (ViewData[LineOfBusiness.Core.Base.ViewDataKeys.UserPermission] != null)
            {
                sJSON = MvcHtmlString.Create(Newtonsoft.Json.JsonConvert.SerializeObject(ViewData[LineOfBusiness.Core.Base.ViewDataKeys.UserPermission]) as string);
            }
            else
            {
                sJSON = MvcHtmlString.Create("[]");
            }
        }

        var permission =  @sJSON;

    </script>

    @RenderBody();
}
else
{

    Layout = null;

    <!DOCTYPE html>
    <html>
    <head>
        <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1">
        <title>@ViewBag.Title</title>

        @Styles.Render("~/Content/" + LineOfBusiness.Core.Helper.CacheHelper.LoginUser.Theme + "/css")
        @Scripts.Render("~/scripts/js")


        <style type="text/css">
   body
    {
        background: #fff;
        font-family: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.Font;
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FontSize;
        color: #666666;
        margin: 0;
        padding: 0;
        overflow:hidden;
    }

    .ModuleTitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ModuleTitleSize();
    }

    .ModuleTitleLeft
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ModuleTitleSize();
    }

    .GroupTitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.GroupTitleSize();
    }

    .mtitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FormTitle();
        padding-left: 10px;
        padding-top: 2px;
        color: #0000FF;
        clear: both;
    }

    .ApplicationTitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ApplicationTitle();
    }

    .buttons button {
	    font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FontSize;
    }



        </style>


    </head>
    <body>
        <script>
        @{
            MvcHtmlString sJSON = null;
            if (ViewData[LineOfBusiness.Core.Base.ViewDataKeys.UserPermission] != null)
            {
                sJSON = MvcHtmlString.Create(Newtonsoft.Json.JsonConvert.SerializeObject(ViewData[LineOfBusiness.Core.Base.ViewDataKeys.UserPermission]) as string);
            }
            else
            {
                sJSON = MvcHtmlString.Create("[]");
            }
        }

        var permission =  @sJSON;

        </script>

        @RenderBody()

    </body>
</html>
}